{% extends "base.html" %}
{% load i18n %}
{% load timezone_filters %}
{% block content %}
{% include "messages/menu.html" %}
<div class='msg_container'>

    <span class="date">{{ message.sent_at|localtime:TIMEZONE }} </span>
    <h2><a href='/user/{{ message.sender }}/'><img src='{{ message.sender.get_profile.get_avatar }}' class='post_av' /> {{ message.sender }}</a> — {{ message.subject }}</h2>


{{ message.body|linebreaksbr }}<br /><br />

{% ifequal message.recipient.pk user.pk %}
<a href="{% url messages_reply message.id %}">{% trans "Reply" %}</a>
{% endifequal %}
<a class="msg_del_big" href="{% url messages_delete message.id %}">{% trans "Delete" %}</a>
</div>
{% endblock %}